package com.wondertek.poms.dao.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Proxy;

import javax.persistence.*;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author chenjijiang
 * @description
 */
@Data
@Entity
@Table(name = "PRD_INFO")
@DynamicUpdate
@DynamicInsert
@Proxy(lazy = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class PrdInfoVo implements Serializable {
	private static final long serialVersionUID = -5240146117478843283L;
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "PRODUCCT_INFO_SEQ")
	@SequenceGenerator(name = "PRODUCCT_INFO_SEQ", allocationSize = 1, sequenceName = "PRODUCCT_INFO_SEQ")
	@Column(name = "PRDINFOID")
	private Long prdInfoId; // 商品包ID
	@Column(name = "NAME")
	private String name; // 产品包名称
	@Column(name = "PRODUCT_INFO_PACKAGE_ID")
	private Long productInfoPackageId;//产品包对应的产品id  对应二级产品     当一级产品存在，而二级产品不存在是  productInfoPackageId = 0

}
